import os
import shutil

src_root = '/root/autodl-tmp/all_traindata'
dst_root = '/root/autodl-tmp/longaxis_proj/longaxis_calc/mydata_test/groundtruth'

seq_list = [str(i).zfill(5) for i in range(177, 197)]
seq_list.remove('00186')

for sn in seq_list:
    src_path = os.path.join(src_root, 'case_' + sn, 'segmentation.nii.gz')
    tgt_path = os.path.join(dst_root, 'segmentation_' + sn + '.nii.gz')
    shutil.copy(src_path, tgt_path)

